import Note from './note.vue'
import NoteSearch from './noteSearch.vue'
import NoteEdit from './noteEdit.vue'
import NoteAdd from './noteAdd.vue'
import NoteView from './noteView.vue'

const components = [
  Note,
  NoteSearch,
  NoteEdit,
  NoteAdd,
  NoteView
]

const main = {
  install(Vue) {
    components.map((component) => {
      Vue.component(component.name, component)
    })
  }
}
export default main
